package cn.springcloud.fix.demo.design.adapter.adapter;

import cn.springcloud.fix.demo.design.adapter.controller.SimpleController;

public class SimpleHandlerAdapter implements HandlerAdapter {

    @Override
    public Boolean supports(Object handler) {
        return (handler instanceof SimpleController);
    }

    @Override
    public void handle(Object handler) {
        ((SimpleController) handler).doSimplerHandler();
    }
}
